/******************************************************************************
 * * setting_bluetooth.h - data structure for setting call sub- module
 *
 * *(C) Copyright 2019 Asr International Ltd.
 * * All Rights Reserved
 * ******************************************************************************/
#ifndef SETTING_BLUETOOTH_H
#define SETTING_BLUETOOTH_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#if USE_LV_BLUETOOTH != 0

#include "../../lvgl/hal/hal_bt.h"
/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/
enum {
    PROCESS_PAIR = 0,
    PROCESS_CONNECT,
    PROCESS_UNPAIR,
    PROCESS_DISCONNECT,
};
typedef UINT8 bt_process;

enum {
    PROCESS_SEND_FILE = 0,
    PROCESS_RECV_FILE
};
typedef UINT8 bt_file_trans_process;

/**********************
 * GLOBAL PROTOTYPES
 **********************/
VOID Display_Setting_Bluetooth_Cb(lv_obj_t * Btn, lv_event_t Event);
lv_obj_t * Bluetooth_Get_Opening_Label(VOID);
VOID Bluetooth_Stop_Scaning_Anim(VOID);
VOID Bluetooth_Update_Display(VOID);
VOID Bluetooth_Processing_Mbox_Update(VOID);
VOID Bluetooth_Nvm_Save_Switch_State(BOOL State);
VOID Bluetooth_Show_Object(BOOL State);
VOID Bluetooth_Update_Scan_Label_Show(VOID);
BOOL Bluetooth_Setting_Is_Top(VOID);
VOID Bluetooth_Transfer_File_Process_Update(bt_file_trans_process Process);
VOID Bluetooth_Receive_File_Confirm(VOID);
VOID Bluetooth_Receive_File_Abort_Tip(UINT8 Reason);
VOID Bluetooth_Transfer_File_Finish(bt_file_trans_process Process, UINT8 Success);
/**********************
 *      MACROS
 **********************/

#endif /*USE_LV_WATCH_BLUETOOTH*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*SETTING_BLUETOOTH_H*/
